'use strict';

const Controller = require('egg').Controller;

class PublicController extends Controller {
  async GetMinaStaticData() {
    const { ctx } = this;
    try {
      ctx.success({
        checkFlag: true,
        msgTpls: [
          {
            btnId: 'rider_reg',
            name: '审核结果通知',
            value: 'muxoi2n3fzx6IPh7AxxFOBRjKP6BngqziBl2aKgwS_I',
            example: [
              '姓名 {{name1.DATA}}',
              '审核结果 {{thing2.DATA}}',
              '审核时间 {{date3.DATA}}',
              '备注 {{thing6.DATA}}'
            ]
          },
          {
            btnId: 'punish',
            name: '处罚结果通知',
            value: 'qiQL7yyYN5MID4A1IiKuUBIXDvt_QFKNnbjYcgyS3yQ',
            example: [
              '处罚类型 {{thing1.DATA}}',
              '处罚时间 {{time2.DATA}}',
              '温馨提示 {{thing3.DATA}}'
            ]
          }
        ]
      });
    } catch (error) {
      ctx.fail(error);
    }
  }
}

module.exports = PublicController;
